package com.guoxue.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.guoxue.dao.IAlbumDao;
import com.guoxue.domain.AlbumVo;
import com.guoxue.service.IAlbumService;
@Service("albumService")
public class AlbumServiceImpl implements IAlbumService{
	@Resource
	private IAlbumDao dao;

	@Override
	public int countAlbumByUid(int uid) {
		return dao.countAlbumByUid(uid);
	}

	@Override
	public void saveAlbum(AlbumVo al) {
		dao.saveAlbum(al);
	}

	@Override
	public AlbumVo getAlbumByKey(int photoId) {
		return dao.getAlbumByKey(photoId);
	}

	@Override
	public List<AlbumVo> getPhotosList(Integer uid) {
		return dao.getPhotosList(uid);
	}
}
